package com.example.vote.springboot_vote.mapper;

import com.example.vote.springboot_vote.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository//这个是工厂生产对象的地方，不写不报错，最好还是写上，编译没问题
public interface UserMapperSql {
    User findByName(@Param("name") String name);
    int insert(@Param("name") String name, @Param("age") Integer age);
    List<com.example.vote.springboot_vote.bean.User> selectUsersByPage(@Param("offset")int offset,@Param("limit")int limit);
}
